import Vue from 'vue'
import JShowModal from './j-show-modal.vue'

const ModalConstructor = Vue.extend(JShowModal)

export const Modal = (options) => {
	const instance = new ModalConstructor({
		data:options
	}).$mount()
	console.log('document===',document,instance);
	// let node = document.getElementById('j-show-modal')
	// if(node){
	// 	node.parentNode.removeChild(node)
	// 	document.body.appendChild(instance.$el)
	// }else{
	// 	document.body.appendChild(instance.$el)
	// }
}